package com.yc.star.booksystem.model;

import lombok.Data;

@Data
public class PageRequest {

    // 当前页面
    private Integer currentPage = 1;
    // 每一页显示的个数
    private Integer pageSize = 10;

    private Integer offset;

    public int getOffset() {
        return (currentPage-1) * pageSize;
    }

}
